package com.molichuxing.gateway.bff.stock.entity.response;

import com.molichuxing.framework.dto.ResponseRootDto;
import com.molichuxing.services.property.CarsStockOperateStatusEnum;
import com.molichuxing.services.property.StockCarTypeEnum;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 
 * @author liyg
 * 库存车辆dto
 * 2019-08-26
 *
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class StockCarVo extends ResponseRootDto{
   
	
	@ApiModelProperty(value = "库存id")
    private Integer id;

    @ApiModelProperty(value = "车辆id")
    private Integer carId;
    
    @ApiModelProperty(value = "车架号")
    private String vin;
    
	@ApiModelProperty(value = "车牌号")
    private String licencePlate;

	@ApiModelProperty(value = "车型名称")
    private String vehicleName;
   
	@ApiModelProperty(value = "车型id")
    private Integer vehicleId;
	
	@ApiModelProperty(value = "车型图")
	private String vehicleImg;
   
	@ApiModelProperty(value = "产权方id")
    private Integer ownershipId;
	
	@ApiModelProperty(value = "产权方名称")
	private String ownershipName;
	
	@ApiModelProperty(value = "库存状态（1：待入库，2：已入库）")
    private Integer status;

	@ApiModelProperty(value = "出入库类型（1：采购，2：调拨，3、拒收、4、收车）")
    private Integer type;
	
	@ApiModelProperty(value = "出入库类型Str")
	private String typeStr;

	@ApiModelProperty(value = "仓库id ")
    private Integer stockId;
    
	@ApiModelProperty(value = "仓库名称")
    private String stockName;

	@ApiModelProperty(value = "仓库类型（1：中转库，2：门店）")
    private Integer stockType;

	@ApiModelProperty(value = " 门店id")
    private Integer storeId;
	
	@ApiModelProperty(value = " 经销商id")
    private Integer dealerId;
	
	@ApiModelProperty(value = "入库时间（入店时间）")
    private String storageTime;
	
	@ApiModelProperty(value = "检验单文件url")
    private String pdiUrl;

	@ApiModelProperty(value = "运营状态（0：待出租，1：已出租，2：不可租）")
    private Integer operationState;
	
	@ApiModelProperty(value = "运营状态Str")
	private String operationStateStr;
	
	@ApiModelProperty(value = "采购日期")
	private String purchaseDate;
	
	@ApiModelProperty(value = "仓储状态")
	private String tabTypeStr;
	
	public void setType(Integer type) {
    	this.type=type;
    	this.typeStr= type==null ? null : StockCarTypeEnum.getName(type);
    }
   
	
	public void setOperationState(Integer operationState) {
    	this.operationState=operationState;
    	this.operationStateStr= operationState==null ? null : CarsStockOperateStatusEnum.getName(operationState);
    }

    /**
     * stock_stock_car
     */
    private static final long serialVersionUID = 1L;

    
}